<!DOCTYPE html>
<html th:replace="~{layouts/layout :: layout(~{::title}, ~{::section})}" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title th:text="${cat.getName()} + ' - 青池'"></title>
</head>
<body>
<section>
    <style>
        #post {
            width: 90%;
            margin: 0 auto; }
    </style>
    <div id="stage">
        <h5 style="margin-left: 50px;" th:text="'分类： ' + ${cat.getName()}"></h5><br>
        <ul id="post" th:each="article : ${articles}">
            <li>
                <a th:href="'/article?id=' + ${article.getId()}" th:text="${article.getTitle()}"></a>
            </li>
        </ul>
    </div>
</section>
</body>
</html>
